<style type="text/css">
  .layui-table-cell {
  height: inherit;
}

.layui-table-tips-main {
  max-height: 400px;
}
body{
  overflow: hidden;
}
</style>
  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-form   layui-form-pane">
       
         
          <div class="layui-inline">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
              <input type="text" name="username" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div> 
          <div class="layui-inline">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-block">
               <select name="role">                  
                  {$default_role|output_select=$roles,###|raw}
               </select>
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
              <input type="text" name="email" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
              <select name="sex">
                <option value="0">不限</option>
                <option value="1">男</option>
                <option value="2">女</option>
              </select>
            </div>
          </div>
          <div class="layui-inline">
            <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-user-front-search">
              <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
            </button>
          </div>
        
      </div>
      
    <div class="layui-card-body">
        <div style="padding-bottom: 10px;">
          <button class="layui-btn layuiadmin-btn-useradmin" data-type="batchdel">禁用</button>
          <button class="layui-btn layuiadmin-btn-useradmin" data-type="add">添加</button>
        </div>
        
        <table id="LAY-user-manage" lay-filter="LAY-user-manage"></table>
       

        <script type="text/html" id="imgTpl">
         <div><img height="80" class="layui-circle" src="{{d.avatar?d.avatar:''}}" ><br/>{{d.username}}</div>
        </script>





        <script type="text/html" id="levelTpl"> 
          {{# if(d.credit_level&&typeof(d.credit_level_txt)!==undefined){ }}
          <a lay-href="{:url('User/creditLog')}?u_id={{d.u_id}}" title="点击查看明细" >{{ d.credit_level_txt }}({{ d.credit_integral }}分)</a>
          {{# } }}
        </script> 


        <script type="text/html" id="table-useradmin-webuser">
          <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
          <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
        </script>
      </div>
    </div>
  </div>
  <script>
  layui.use(['index', 'useradmin'], function(){}); 
  </script>